﻿using Manhua3.Common;
using Manhua3.SQLiteTable;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage.Streams;

namespace Manhua3.DataModel
{
    public enum PageMode 
    {
        Normal = 0,
        AutoHalf = 1,
        AutoMerge = 2
    }

    public class ComicPage : BindableBase
    {
        public int Page { get; set; }
        public int ComicId { get; set; }
        public int ChapterId { get; set; }
        
        public bool IsPart { get; set; }

        private string _url;

        public string Url
        {
            get { return _url; }
            set { this.SetProperty(ref this._url, value); }
        }

        public string SourceUrl { get; set; }

        private IRandomAccessStream _sourceStream;

        public IRandomAccessStream SourceStream
        {
            get { return _sourceStream; }
            set { this.SetProperty(ref this._sourceStream, value); }
        }
    }
}
